package business.other.impl;

import business.other.NewsAgencyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import other.domain.*;
import other.mapper.NewsAgencyMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/15.
 */
@Service(value = "newsAgencyService")
public class NewsAgencyServiceImpl implements NewsAgencyService {
//
    @Autowired
NewsAgencyMapper newsAgencyMapper;

    @Override
    public List<NewsAgency> selectNewsAgency() {
        NewsAgencyCriteria criteria =new NewsAgencyCriteria();
        criteria.createCriteria().getAllCriteria();
        return newsAgencyMapper.selectByExample(criteria);
    }
}
